...型(generic);一个类的模板叫 做泛型类(generic class),而一个函数的模板也自然而然地被叫 做泛型函数(generic function); • 容器(Container):可容纳一些数据的模板类。
基于76个网页-相关网页
甚至连Lisp强大的对象系统也是构建在函数的概念性扩展——广义函数(generic function)之上的,第16章将会介绍它们。 而且,尽管宏对于Lisp风格有着重要的作用,但最终所有实际的功能还是由函数来提供的。
基于36个网页-相关网页
generic member function 通用成员函数
Generic Inter-Working Function 业务的通用工作间功能
non-generic form of intrinsic function [计] 内在函数的非类属形式
generic name for intrinsic function [计] 内在函数类属名
non-generic form of external function [计] 外部函数的非类属形式
generic c function 类属函数
Generic Transfer Function 通用传递函数
A Generic Iterator Function 通用例遍方法
hybrid function generic algorithm 混合函数遗传算法
以上来源于: WordNet
As a simple example, let us create a generic function called whoami and some tagged methods to dispatch to.
作为一个简单的例子,我们来创建一个称为whoami的泛型函数以及一些要被分派标记的方法。
In prior examples, we always used the same doIt() name to define specializations of the generic function doIt().
在上一个例子中,我们总是使用相同的 doIt() 名来定义通用函数 doIt() 的独特性。
It is true enough that dispatch.on generic function signatures for new types can be added without changing the prior code.
对于新的类型来说,的确可以添加dispatch . on通用函数签名,而不用修改以前的代码。
应用推荐